﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Core.DataAccess;
using System.ComponentModel.Composition;
using Core.BusinessLogic.Interfaces;
using Core.Common;
using SonCa.SocialNetwork.Web.Personals.Presenters;
using SonCa.SocialNetwork.Web.Personals.IPresenters;

namespace SonCa.SocialNetwork.Web.Personals.ASCX
{
    public partial class ListFriends : System.Web.UI.UserControl, IPersonalFriendPresenter
    {
        private PersonalFriendPresenter _presenter;

        protected void Page_Load(object sender, EventArgs e)
        {            
            
        }        

        public void DisplayFriends(Account friendAcc, string level)
        {
            imgAvatar_PersonalFriends.ImageUrl = "../../Images/ProfileAvatar/ProfileImage.aspx?AccountID="+ friendAcc.AccountID;
            lblUserName_PersonalFriends.Text = friendAcc.LastName + " " + friendAcc.MidName + " " + friendAcc.FirstName;
            lblBirth_PersonalFriends.Text = Convert.ToDateTime(friendAcc.BirthDate).ToShortDateString();
            
            imgLevel_PersonalFriends.ImageUrl = "../../img/" + level;
            lblScore_PersonalFriends.Text = friendAcc.Score.ToString();
        }

        public void DisplayListFriend(List<Account> lstAccountFriends)
        {
            
        }
    }
}